/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.common.core.util.R;
import com.ykht.proj.coupon.entity.CnCouponLog;
import com.ykht.proj.coupon.vo.*;

/**
 * 优惠券领取记录表
 *
 * @author proj code generator
 * @date 2020-11-16 17:00:21
 */
public interface CnCouponLogService extends IService<CnCouponLog> {

	R findPage(Page page, CnCouponLogVo cnCouponLogVo);

    IPage<CouponLogPagelResp> opPage(Page page,CouponLogPagelReq req);

	R writeOff(CnCouponLog cnCouponLog);

	/**
	 * 核销优惠卷 验证
	 * @param verificationCode
	 * @return
	 */
	R findByCode(String verificationCode);

	String QRcode(String verificationCode);

	R<CnCouponDetailResp> getCouponById(Long id);

	R queryById(Long id);

	CouponLogPagelResp getCouponLogPagelResp(CouponLogPagelResp o,CouponLogPagelReq req);

	R getCouponLogPagelRespById(CouponLogPagelReq req);

    Object getAllCoupon(FxCmsInfoVO fxCmsInfoVO);

	CouponLogCount myCouponCount(Long personId);

	/**
	 * 优惠券领取记录表 审核
	 * @param cnCouponLog
	 */
	void updateCheckStatus(CnCouponLog cnCouponLog);

	/**
	 * 优惠券领取记录表 反馈状态
	 * @param cnCouponLog
	 */
	void updateFeedbackStatus(CnCouponLog cnCouponLog);

	/**
	 * 通过id查询优惠券领取记录表
	 * @param id
	 * @return
	 */
	CnCouponLogVo getByIdCnCouponLog(Long id);


	

	Page<PaymentVo> getPaymentPage(PaymentVo paymentVo);

	R getePosit(Long sjId);


	R getPayment(Long sjId);
}
